namespace NGIS.Model
{
	public struct ModelCategory
	{
		public string principle;

		public string path;

		public ModelCategory(string pPrinciple, string pPath)
		{
			principle = pPrinciple;
			path = pPath;
		}

		public bool compareOther(ModelCategory pCategory)
		{
			if (principle != pCategory.principle)
			{
				return false;
			}
			if (path != pCategory.path)
			{
				return false;
			}
			return true;
		}

		public static bool operator ==(ModelCategory mcA, ModelCategory mcB)
		{
			return mcA.compareOther(mcB);
		}

		public static bool operator !=(ModelCategory mcA, ModelCategory mcB)
		{
			return !(mcA == mcB);
		}
	}
}
